<?php

namespace App\Http\Controllers\Admin;

use App\Models\Topic;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class TopicController extends Controller
{
    public function index() {

        $topics = Topic::paginate(10);

        return view('admin.topic.index',compact('topics'));
    }
}
